+Wed Feb 27 17:32:09 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkrange.c (gtk_range_get_props): if CAN_FOCUS
+ reserve focus_line_width + focus_line_pad extra
+ space and draw the focus in that space. #72027.
+
Wed Feb 27 23:02:55 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
+Wed Feb 27 17:32:09 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkrange.c (gtk_range_get_props): if CAN_FOCUS
+ reserve focus_line_width + focus_line_pad extra
+ space and draw the focus in that space. #72027.
+
Wed Feb 27 23:02:55 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
+Wed Feb 27 17:32:09 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkrange.c (gtk_range_get_props): if CAN_FOCUS
+ reserve focus_line_width + focus_line_pad extra
+ space and draw the focus in that space. #72027.
+
Wed Feb 27 23:02:55 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
+Wed Feb 27 17:32:09 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkrange.c (gtk_range_get_props): if CAN_FOCUS
+ reserve focus_line_width + focus_line_pad extra
+ space and draw the focus in that space. #72027.
+
Wed Feb 27 23:02:55 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
+Wed Feb 27 17:32:09 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkrange.c (gtk_range_get_props): if CAN_FOCUS
+ reserve focus_line_width + focus_line_pad extra
+ space and draw the focus in that space. #72027.
+
Wed Feb 27 23:02:55 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
+Wed Feb 27 17:32:09 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkrange.c (gtk_range_get_props): if CAN_FOCUS
+ reserve focus_line_width + focus_line_pad extra
+ space and draw the focus in that space. #72027.
+
Wed Feb 27 23:02:55 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
+Wed Feb 27 17:32:09 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkrange.c (gtk_range_get_props): if CAN_FOCUS
+ reserve focus_line_width + focus_line_pad extra
+ space and draw the focus in that space. #72027.
+
Wed Feb 27 23:02:55 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
GtkStateType state;
GdkRectangle expose_area; /* Relative to widget->allocation */
GdkRectangle area;
+ gint focus_line_width = 0;
+ gint focus_padding = 0;
range = GTK_RANGE (widget);
+ if (GTK_WIDGET_CAN_FOCUS (range))
+ {
+ gtk_widget_style_get (GTK_WIDGET (range),
+ "focus-line-width", &focus_line_width,
+ "focus-padding", &focus_padding,
+ NULL);
+ }
+
expose_area = event->area;
expose_area.x -= widget->allocation.x;
expose_area.y -= widget->allocation.y;
sensitive ? GTK_STATE_ACTIVE : GTK_STATE_INSENSITIVE,
GTK_SHADOW_IN,
&area, GTK_WIDGET(range), "trough",
- widget->allocation.x + range->range_rect.x,
- widget->allocation.y + range->range_rect.y,
- range->range_rect.width,
- range->range_rect.height);
+ widget->allocation.x + range->range_rect.x + focus_line_width + focus_padding,
+ widget->allocation.y + range->range_rect.y + focus_line_width + focus_padding,
+ range->range_rect.width - 2 * (focus_line_width + focus_padding),
+ range->range_rect.height - 2 * (focus_line_width + focus_padding));
if (sensitive &&
"arrow_displacement_y", &tmp_arrow_displacement_y,
NULL);
+ if (GTK_WIDGET_CAN_FOCUS (range))
+ {
+ gint focus_line_width;
+ gint focus_padding;
+
+ gtk_widget_style_get (GTK_WIDGET (range),
+ "focus-line-width", &focus_line_width,
+ "focus-padding", &focus_padding,
+ NULL);
+
+ tmp_trough_border += focus_line_width + focus_padding;
+ }
+
if (slider_width)
*slider_width = tmp_slider_width;
{
gint slider_length;
gint n_steppers;
-
+
border->left = 0;
border->right = 0;
border->top = 0;